SWEP.Category = "Stargate World Wars"
SWEP.PrintName = "Stun Gun";
SWEP.Author = "aVoN/Prefanatic"
SWEP.Contact = ""
SWEP.Purpose = "Stun"
SWEP.Instructions = "Point, Click, Stun."
SWEP.Base = "weapon_base";		
SWEP.Slot = 1;
SWEP.SlotPos = 3;
SWEP.DrawAmmo	= true;
SWEP.DrawCrosshair = true;
SWEP.ViewModel = "models/weapons/v_pistol.mdl";
SWEP.WorldModel = "models/weapons/w_pistol.mdl";

SWEP.Primary.ClipSize = -1;
SWEP.Primary.DefaultClip = 100;
SWEP.Primary.Automatic = false;
SWEP.Primary.Ammo	= "HelicopterGun";

SWEP.Secondary.ClipSize = -1;
SWEP.Secondary.DefaultClip = -1;
SWEP.Secondary.Automatic = false;
SWEP.Secondary.Ammo = "none";

SWEP.Spawnable = false;
SWEP.AdminSpawnable = true;

function SWEP:Deploy()
	self.Weapon:SendWeaponAnim(ACT_VM_DRAW);
	if SERVER then self.Owner:EmitSound(self.Sounds.Deploy,90) end; -- Once again, no deploy sound.
end

function SWEP:PrimaryAttack()
	if(not ValidEntity(self.Owner) or (self.Owner:IsPlayer() and self.Owner:GetAmmoCount(self.Primary.Ammo) <= 0)) then return end;
	self.Weapon:SendWeaponAnim(ACT_VM_PRIMARYATTACK);
	/*-- Muzzle
	local fx = EffectData();
	fx:SetScale(0);
	fx:SetOrigin(self.Owner:GetShootPos());
	fx:SetEntity(self.Owner);
	fx:SetAngle(Angle(255,50,50));
	fx:SetRadius(64);
	util.Effect("energy_muzzle",fx,true);
	-- Shot*/
	if SERVER then self:SVPrimaryAttack() end;
	self.Weapon:SetNextPrimaryFire(CurTime()+0.2);
	return true;
end

function SWEP:SecondaryAttack() return false end
